package com.lesso.zgs.sunflower.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.zgs.sunflower.pojo.dto.EmployeeDeviceDTO;
import com.lesso.zgs.sunflower.pojo.dto.EmployeeDeviceQueryDTO;
import com.lesso.zgs.sunflower.pojo.vo.EmployeeDeviceVO;

import java.util.List;

/**
 * <p>
 * 员工设备关系 服务类
 * </p>
 *
 * @author zgs
 * @since 2025-07-03
 */
public interface IEmployeeDeviceService {

    /**
     * 为员工授权设备
     */
    Integer authorizeDevice(EmployeeDeviceDTO dto);

    /**
     * 取消员工设备授权
     */
    Integer cancelAuthorization(Long id);

    /**
     * 分页查询员工设备关系
     */
    Page<EmployeeDeviceVO> page(EmployeeDeviceQueryDTO dto);

    /**
     * 根据员工ID查询设备
     */
    List<EmployeeDeviceVO> getByEmployeeId(Long employeeId);
} 